package com.phf.vhr.web.model.enums;

import lombok.Data;

/**
 * @program: vhr-master
 * @description: 响应状态码枚举
 * @author: Peng houfu
 * @create: 2021-09-26 13:48
 **/
public enum ResultEnum {

    /**
     * 成功
     */
    SUCCESS(200, "成功"),

    /**
     * 服务器错误
     */
    ERROR_SERVER(500, "服务器错误"),

    /**
     * 业务异常
     */
    BUSINESS_ERROR(600, "业务异常");
    
    

    private Integer code;

    private String msg;
    
    public Integer getCode(){
        return this.code;
    }

    public String getMsg(){
        return this.msg;
    }
    
    

    ResultEnum(final Integer code, final String msg) {
        this.code = code;
        this.msg = msg;
    }
}
